package BanyuanClub.Study.Day0304;

import java.io.FileWriter;
import java.io.IOException;

/**
 * 字符输出流
 */
public class TextFileWriter {
    public static void main(String[] args) {
        try(FileWriter fw = new FileWriter("srr.txt")){
            fw.write(String.valueOf("hollo, my son".getBytes()));
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
